import request from '@/utils/request'

// 查询律师的可服务时间列表
export function listLawyerTime(query) {
  return request({
    url: '/business/lawyertime/list',
    method: 'get',
    params: query
  })
}

// 查询律师的可服务时间详细
export function getLawyerTime(id) {
  return request({
    url: '/business/lawyertime/' + id,
    method: 'get'
  })
}

// 新增律师的可服务时间
export function addLawyerTime(data) {
  return request({
    url: '/business/lawyertime',
    method: 'post',
    data: data
  })
}

// 修改律师的可服务时间
export function updateLawyerTime(data) {
  return request({
    url: '/business/lawyertime',
    method: 'put',
    data: data
  })
}

// 删除律师的可服务时间
export function delLawyerTime(id) {
  return request({
    url: '/business/lawyertime/' + id,
    method: 'delete'
  })
}

// 导出律师的可服务时间
export function exportLawyerTime(query) {
  return request({
    url: '/business/lawyertime/export',
    method: 'get',
    params: query
  })
}